
<template>
  <!-- 用户登录 -->
  <div class="login-container">
    <div class="left">
      <el-image class="login-bg" :src="require('./assets/images/bg.jpg')" fit="cover" />
    </div>
    <div class="right">
      <p class="login-title">{{ loginTitle }}<br>深汕投控管理后台</p>
      <div class="login-border">
        <div class="login-main">
          <el-tabs v-model="activeName">
            <el-tab-pane label="密码登录" name="user">
              <userLogin />
            </el-tab-pane>
          </el-tabs>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import '@/util/encrypt/index'
import userLogin from './userlogin'
import { mapGetters } from 'vuex'

export default {
  name: 'Login',
  components: {
    userLogin
  },
  data() {
    return {
      activeName: 'user'
    }
  },
  computed: {
    ...mapGetters(['website']),
    loginTitle() {
      return '欢迎登录'
    }
  },
  created() {},
  mounted() {},
  methods: {}
}
</script>

<style lang="scss" >
.login-container {
  height: 100vh;
  overflow: hidden;
  display: flex;

  .left {
    flex: 1;

    .login-bg {
      height: 100vh;
      width: 100%;
    }
  }

  .right {
    width: 650px;
    padding-left: 115px;
    box-sizing: border-box;

    .el-tabs__item {
      font-size: 20px;
      color: #333333;
      margin-top: 30px;
      font-weight: 400;
    }

    .el-tabs__nav-wrap::after {
      background-color: #fff !important;
    }

    .el-tabs__item.is-active {
      color: #CF000D !important;
    }

    .el-tabs__active-bar {
      background-color: #CF000D !important;
    }

    .login-title {
      font-family: 'PingFangSC-Semibold';
      font-size: 30px;
      margin-top: 200px;
      color: #333333;
      letter-spacing: 1px;
      text-align: justify;
      font-weight: 600;
    }
  }

 .el-input,.el-input input{
    width: 280px!important;
    height: 60px!important;
    background-color: #FAFAFA!important;
  }
  .w140.el-input,.w140 input {
    width: 140px!important;
  }

  .el-input__inner:hover, .el-select:hover .el-input__inner{
    background-color: #FAFAFA;
  }
  .el-input-group__prepend{
    font-family: 'PingFangSC-Regular';
    font-size: 14px;
    color: #C0C0C0;
    background: #FAFAFA;
    letter-spacing: 1px;
    text-align: justify;
    font-weight: 400;
  }

  .defulat-btn {
    background: #CF000D !important;
    border-color: #CF000D !important;
    box-shadow: 0 2px 5px 0 rgba(207, 0, 13, 0.20), 0 10px 15px 0 rgba(207, 0, 13, 0.10);
    color: #FFF !important;
    border-radius: 4px;
  }

  .login-submit {
    width: 410px;
    height: 60px;
    margin: 20px auto;
    font-size: 18px;
  }
}
</style>
